package com.zhonghui.service;

import com.zhonghui.common.core.result.FwResult;
import com.zhonghui.dto.PageDto;
import com.zhonghui.dto.ProductCreateDto;
import com.zhonghui.model.Product;
import com.zhonghui.vo.CategoryVo;

import java.util.List;

/**
 * @author: FL
 * @create: 2024 2024/5/3 14:49
 */
public interface ProductService {
    /**
     * 获取商品分类
     */
    FwResult<List<CategoryVo>> getCategory();

    FwResult getHot(PageDto pageDto);

    FwResult getAllProduct(PageDto pageDto);

    FwResult getProduct(Long id);

    FwResult addProduct(ProductCreateDto productCreateDto);

    FwResult getSubcategories(Long categoryId);

    FwResult getBanner();

    FwResult deleteProduct(Long id);

    FwResult getAllProductByCategory(Long categoryId,PageDto pageDto);

    FwResult searchByKeyword(String keyword, PageDto pageDto);

    FwResult getAllProductByParentCategory(Long parentCategoryId, PageDto pageDto);

    FwResult getProductForEdit(Long id);

    FwResult updateProduct(ProductCreateDto productCreateDto);



}
